package 第四章控制语句;

public class SwitchTest03 {
    public static void main(String[] args) {
        char c = 'A';
        //switch(最终只能转换成int/string)
        switch (c) {
            case 'A':
                System.out.println("高级");
                break;
            case 'B':
                System.out.println("中级");
                break;
            case 'C':
                System.out.println("初级");
                break;
            case 'D':
                System.out.println("无等级");
                break;
            default:
                System.out.println("输入错误！");
        }

    }
}
